package com.zcy.utils;

import lombok.Data;

/**
 * 阿里云OSS配置类
 */
@Data
public class OssConfig {
    
    /**
     * 外网访问Endpoint
     */
    public static final String PUBLIC_ENDPOINT = "oss-cn-beijing.aliyuncs.com";
    
    /**
     * 内网访问Endpoint（ECS经典网络/VPC网络）
     */
    public static final String INTERNAL_ENDPOINT = "oss-cn-beijing-internal.aliyuncs.com";
    
    /**
     * Bucket名称
     */
    public static final String BUCKET_NAME = "java-test101";
    
    /**
     * AccessKey ID
     */
    public static final String ACCESS_KEY_ID = "LTAI5t9siBmTRpKr9AnJQSkw";
    
    /**
     * AccessKey Secret
     */
    public static final String ACCESS_KEY_SECRET = "pDbGof5N8lHc6NMesnWR9AwB3m1hFa";
    
    /**
     * 公网访问URL前缀
     */
    public static final String PUBLIC_URL_PREFIX = "https://" + BUCKET_NAME + "." + PUBLIC_ENDPOINT;
    
    /**
     * 内网访问URL前缀
     */
    public static final String INTERNAL_URL_PREFIX = "https://" + BUCKET_NAME + "." + INTERNAL_ENDPOINT;
}